package com.sc.design.mediator;

public class Client {
    public static void main(String[] args) {
        AbstractMediator mediator = new Mediator();
        Purchase purchase = new Purchase(mediator);
        purchase.buyComputer(100);

        Sale sale = new Sale(mediator);
        sale.saleComputer(50);

        Stock stock = new Stock(mediator);
        stock.clearStock();
    }
}
